package com.ruoyi.contract.mapper;

import java.util.List;
import com.ruoyi.contract.domain.InvoiceMain;

/**
 * 发票管理Mapper接口
 * 
 * @author ruoyi
 * @date 2021-04-25
 */
public interface InvoiceMainMapper 
{
    /**
     * 查询发票管理
     * 
     * @param gid 发票管理ID
     * @return 发票管理
     */
    public InvoiceMain selectInvoiceMainById(String gid);

    /**
     * 查询发票管理列表
     * 
     * @param invoiceMain 发票管理
     * @return 发票管理集合
     */
    public List<InvoiceMain> selectInvoiceMainList(InvoiceMain invoiceMain);

    /**
     * 新增发票管理
     * 
     * @param invoiceMain 发票管理
     * @return 结果
     */
    public int insertInvoiceMain(InvoiceMain invoiceMain);

    /**
     * 修改发票管理
     * 
     * @param invoiceMain 发票管理
     * @return 结果
     */
    public int updateInvoiceMain(InvoiceMain invoiceMain);

    /**
     * 删除发票管理
     * 
     * @param gid 发票管理ID
     * @return 结果
     */
    public int deleteInvoiceMainById(String gid);

    /**
     * 批量删除发票管理
     * 
     * @param gids 需要删除的数据ID
     * @return 结果
     */
    public int deleteInvoiceMainByIds(String[] gids);
}
